package cn.tedu.spring.demo;

import org.springframework.stereotype.Component;

/**
 * Component注解:表示该类为spring的组件，spring framework会为该类创建对象
 */
@Component
public class User {
    public void run(){
        System.out.println("谁在跑？");
    }
}
